/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.delaphone.flocash.web.action;

import com.delaphone.flocash.model.FCards;
import com.delaphone.flocash.service.BankService;
import com.delaphone.flocash.service.UserService;
import com.opensymphony.xwork2.Action;
import java.util.List;

/**
 *
 * @author tamdx
 */
public class ManageCardsAction extends BaseAction {

    private UserService userService;
    private BankService bankService;
    private List<FCards> listCard;

    public String index() {
        if(user == null){
        return Action.ERROR;
        }
        listCard = bankService.getListCardByUserId(user.getId());
        return Action.SUCCESS;
    }

    public BankService getBankService() {
        return bankService;
    }

    public void setBankService(BankService bankService) {
        this.bankService = bankService;
    }

    public UserService getUserService() {
        return userService;
    }

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    public List<FCards> getListCard() {
        return listCard;
    }

    public void setListCard(List<FCards> listCard) {
        this.listCard = listCard;
    }
}
